package com.ruoyi.etp.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 团队分析对象 etp_organization_stats
 *
 * @author xmj
 * @date 2025-09-09
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EtpOrganizationStats extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 所属组织 */
    @Excel(name = "所属组织")
    private Long deptId;
    /** 员工数 */
    @Excel(name = "员工数")
    private Long employeeCount;
    /** 客户数 */
    @Excel(name = "客户数")
    private Long customerCount;
    /** 录音数 */
    @Excel(name = "录音数")
    private Long recordingCount;
    /** 有效录音数 */
    @Excel(name = "有效录音数")
    private Long validRecordingCount;
    /** 工牌使用率 */
    @Excel(name = "工牌使用率")
    private String badgeUsageRate;
    /** 服务平均分 */
    @Excel(name = "服务平均分")
    private Long avgServiceScore;
    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("employeeCount", getEmployeeCount())
            .append("customerCount", getCustomerCount())
            .append("recordingCount", getRecordingCount())
            .append("validRecordingCount", getValidRecordingCount())
            .append("badgeUsageRate", getBadgeUsageRate())
            .append("avgServiceScore", getAvgServiceScore())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
        .toString();
    }
}
